package nl.windgazer.arachne.services;

import org.apache.tapestry5.MarkupWriter;


/**
 * An add-on to T5s' own RenderSupport. Allowing a developer to add ScriptBlocks and StyleBlocks
 * to the head of a page, for when a script can't wait for the page to finish loading thus making
 * the initScript and addScript methods unusable.
 * Additionally support for meta-tags is added to be used, for example for social network tagging...
 * 
 * @author mreuring
 */
public interface ArachneRenderSupport {

	void addScriptHead(String script);

	void addScriptHead(String script, boolean beforeLibraries);

	void addStyleHead(String style);

	void addCufonReplace(String cufon);

	void addMetaTag(String keyValue, String content, String keyName);

	void addMetaTag(String keyValue, String content);

	void addLink(String rel, String href);

	void writeMarkup(MarkupWriter writer);

	void setCufonInit(boolean cufonInit);

	boolean isCufonInit();

}
